(function ($) {
  Drupal.behaviors.contextExtendCreateContext = {
    attach: function() {
      $('.context-extend-create-context').click(function(e){
        var settings = Drupal.settings.context_extend;
        $.get('/context_extend/create', {path : settings.currentPath}, function() {
          window.location.reload();
        });
        e.preventDefault();
        return false;
      });
    },
    detach: function() { }
  };
})(jQuery);
